package com.subang.function.domain;

import com.subang.common.annotation.Excel;
import com.subang.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 申论参考答案对象 shenlun_reference_answers
 * 
 * @author subei
 * @date 2025-02-26
 */
public class ShenlunReferenceAnswers extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private String id;

    /** 问题ID */
    @Excel(name = "问题ID")
    private String questionId;

    /** 试卷ID */
    @Excel(name = "试卷ID")
    private String paperId;

    /** 答案来源 */
    @Excel(name = "答案来源")
    private String source;

    /** 答案内容 */
    @Excel(name = "答案内容")
    private String content;

    @Excel(name = "答案属性，0是机构，1是高分")
    private Integer answerType;

    @Excel(name = "是否点赞,1是点赞")
    private Long isLiked;
    /** 点赞数 */
    @Excel(name = "点赞数")
    private Long likeCount;

    /** 点踩数 */
    @Excel(name = "点踩数")
    private Long stepCount;

    /** 是否有权限 */
    @Excel(name = "是否有权限")
    private Integer hasPermission;

    public void setId(String id)
    {
        this.id = id;
    }

    public String getId()
    {
        return id;
    }
    public void setQuestionId(String questionId)
    {
        this.questionId = questionId;
    }

    public String getQuestionId()
    {
        return questionId;
    }
    public void setSource(String source) 
    {
        this.source = source;
    }

    public String getSource() 
    {
        return source;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }
    public void setLikeCount(Long likeCount) 
    {
        this.likeCount = likeCount;
    }

    public Long getLikeCount() 
    {
        return likeCount;
    }
    public void setStepCount(Long stepCount) 
    {
        this.stepCount = stepCount;
    }

    public Long getStepCount() 
    {
        return stepCount;
    }
    public void setHasPermission(Integer hasPermission) 
    {
        this.hasPermission = hasPermission;
    }

    public Integer getHasPermission() 
    {
        return hasPermission;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("questionId", getQuestionId())
            .append("paperId", getPaperId())
            .append("source", getSource())
            .append("content", getContent())
            .append("answerType", getAnswerType())
            .append("isLiked", getIsLiked())
            .append("likeCount", getLikeCount())
            .append("stepCount", getStepCount())
            .append("hasPermission", getHasPermission())
            .toString();
    }

    public String getPaperId() {
        return paperId;
    }

    public void setPaperId(String paperId) {
        this.paperId = paperId;
    }

    public Long getIsLiked() {
        return isLiked;
    }

    public void setIsLiked(Long isLiked) {
        this.isLiked = isLiked;
    }

    public Integer getAnswerType() {
        return answerType;
    }

    public void setAnswerType(Integer answerType) {
        this.answerType = answerType;
    }
}
